import Mock from 'mockjs';

Mock.mock(
  'http://202.120.40.87:14642/api/detection/tasks',
  'get',
  () => ({
    status: '200',
    message: 'success',
    data: {
      0: [
        {
          processId: '345fdffdbg',
          taskId: '55343ew',
          state: 'PENDING',
          releaseTime: '2019-12-24T05:09:04.648+0000',
          startTime: null,
          endTime: null,
        }, {
          processId: '345fdffdgk',
          taskId: '55343ew',
          state: 'PENDING',
          releaseTime: '2019-12-24T05:09:04.648+0000',
          startTime: null,
          endTime: null,
        }],
      1: [
        {
          processId: 'modred',
          taskId: 'test',
          state: 'PENDING',
          releaseTime: '2019-12-24T05:09:04.648+0000',
          startTime: null,
          endTime: null,
        },
      ],

    },
  }),
);
